package com.lucy.property.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "楼栋单元新建参数")
public class BuildingUnitCreateParams {
    @NotBlank(message = "楼栋ID不可为空")
    @ApiModelProperty("楼栋ID")
    String buildingId;

    @NotBlank(message = "楼栋ID不可为空")
    @ApiModelProperty("楼栋单元名")
    String buildingUnitName;

    @Min(0)
    @ApiModelProperty("楼层高度")
    Integer floorTotal;

    @Min(0)
    @ApiModelProperty("房产个数")
    Integer houseNum;
}
